<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:composite="http://java.sun.com/jsf/composite"
      xmlns:ui="http://java.sun.com/jsf/facelets">

<composite:interface>
    <composite:attribute name="version" type="org.zanata.model.HProjectIteration"
                         shortDescription="Version to display" required="true"/>
    <composite:attribute name="showIcon" type="java.lang.Boolean"
                         shortDescription="Optional, use to suppress icon display"
                         required="false" default="true"/>
</composite:interface>

<composite:implementation>
  <ui:fragment rendered="#{cc.attrs.version.active}">
    #{cc.attrs.version.slug}
  </ui:fragment>
  <ui:fragment rendered="#{!cc.attrs.version.active}">
    <span class="txt--neutral">#{cc.attrs.version.slug}
      <ui:fragment rendered="#{cc.attrs.showIcon}">
        <i class="i--small i--right i--lock" title="#{msgs['jsf.iteration.tooltip.readonly']}"></i>
      </ui:fragment>
    </span>
  </ui:fragment>
</composite:implementation>
</html>



